﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DragonSolution.Web.Data.Entity
{
    /// <summary>
    /// 附件实体（图片、文件……）
    /// </summary>
    public class Attachment
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        public int AttachmentID { get; set; }
        /// <summary>
        /// 所属表ID
        /// </summary>
        public int TableID { set; get; }
        /// <summary>
        /// 所属表名称
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string AttachmentName { get; set; }
        /// <summary>
        /// 实际存储相对路径
        /// </summary>
        public string AttachmentPath { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public int AttachmentSize { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public int IsDelete{ get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime{ get; set; }
    }
}
